cmake_minimum_required(VERSION 3.10)

# set the project name
project(Tutorial  VERSION 1.0)
message(STATUS "current os: " ${CMAKE_SYSTEM_NAME})
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
message(STATUS "set windows special configure")
endif()
configure_file(cfg.h.in cfg.h)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS OFF)
# add the executable
add_executable(Tutorial tutorial.cxx)
target_include_directories(${PROJECT_NAME}  PUBLIC    "${PROJECT_BINARY_DIR}" ) # 加在最后